Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
In the code you provided, you are not doing any deep copy hence the crash you are getting. The QImage constructor that you are using explicitly state that you are responsible for the lifetime management of the underlying data.
Thank you a lot for quick and exact answer!
@Jeff-Andle
If you do not like that cleanup or if it is too hard to decide whether to free the memory you can use one oft these.
I have used QSharedDataPointer (but not the others so far), and it seems to work nice.
You're welcome !
If you have everything running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)